package com.epin.business.commons.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 表伪外键记录表
 * </p>
 *
 * @author 
 * @since 2017-11-08
 */
@TableName("t_foreign_key")
public class ForeignKey extends Model<ForeignKey> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 记录UUID
     */
	private String uuid;
    /**
     * 待检表名
     */
	private String table;
    /**
     * 参考表名
     */
	@TableField("reference_table")
	private String referenceTable;
    /**
     * 约束属性数
     */
	@TableField("number_cols")
	private Integer numberCols;
    /**
     * 删除时（1：RESTRICT，2：NO ACTION，3：CASCADE，4：SET NULL）
     */
	@TableField("delete_type")
	private Integer deleteType;
    /**
     * 更新时（1：RESTRICT，2：NO ACTION，3：CASCADE，4：SET NULL）
     */
	@TableField("update_type")
	private Integer updateType;
    /**
     * 创建者ID
     */
	@TableField("creator_id")
	private Integer creatorId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改者ID
     */
	@TableField("updator_id")
	private Integer updatorId;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getTable() {
		return table;
	}

	public void setTable(String table) {
		this.table = table;
	}

	public String getReferenceTable() {
		return referenceTable;
	}

	public void setReferenceTable(String referenceTable) {
		this.referenceTable = referenceTable;
	}

	public Integer getNumberCols() {
		return numberCols;
	}

	public void setNumberCols(Integer numberCols) {
		this.numberCols = numberCols;
	}

	public Integer getDeleteType() {
		return deleteType;
	}

	public void setDeleteType(Integer deleteType) {
		this.deleteType = deleteType;
	}

	public Integer getUpdateType() {
		return updateType;
	}

	public void setUpdateType(Integer updateType) {
		this.updateType = updateType;
	}

	public Integer getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getUpdatorId() {
		return updatorId;
	}

	public void setUpdatorId(Integer updatorId) {
		this.updatorId = updatorId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
